package com.gw.detail.controllor.detail;

import com.gw.detail.service.QueryService;
import com.ruoyi.common.core.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author WangBin
 * @version 1.0
 * @date 2021/5/5 15:49
 */
@RestController
@RequestMapping("/detail/queryData")
public class QueryController {

    @Autowired
    private QueryService queryService;

    @GetMapping("/getByFall/{id}")
    public AjaxResult queryDataOfAll(@PathVariable("id") Long fall) {
        return AjaxResult.success(queryService.getByFall(fall));
    }
}
